package com.wu.common.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author whx
 * @date 2021/7/9
 */
@Data
public class Order {

    private Integer id;
    private String orderNo;


    private Date createTime;

    public Order(Integer id, String orderNo, Date createTime) {
        this.id = id;
        this.orderNo = orderNo;
        this.createTime = createTime;
    }

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getCreateTime() {
        return createTime;
    }

    public Order() {
    }
}
